package com.shop.shard.controller.command.order;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description: 代码生成器自动生成
 * @author:
 * @Createed Date: 2019-8-16 10:06:57
 * @ModificationHistory: Who  When  What
 * ---------     -------------   --------------------------------------
 **/
@Data
public class OrderItemUpdateCommand implements Serializable{
    /** 主键*/
    @NotNull(message = "主键不能为空")
    @ApiModelProperty(value = "主键")
    private Long orderItemId;
    /** 订单id*/
    @NotNull(message = "订单id不能为空")
    @ApiModelProperty(value = "订单id")
    private Long orderId;
    /** 商品id*/
    @NotNull(message = "商品id不能为空")
    @ApiModelProperty(value = "商品id")
    private Long productId;
    /** 单价*/
    @NotNull(message = "单价不能为空")
    @ApiModelProperty(value = "单价")
    private Double itemPrice;
    /** 数量*/
    @NotNull(message = "数量不能为空")
    @ApiModelProperty(value = "数量")
    private Integer totalNum;
    /** 订单总额*/
    @NotNull(message = "订单总额不能为空")
    @ApiModelProperty(value = "订单总额")
    private Double totalPrice;
    /** 下单时间*/
    @NotNull(message = "下单时间不能为空")
    @ApiModelProperty(value = "下单时间")
    private Date orderTime;
    /** 用户id*/
    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id")
    private Long userId;
}